{% extends "base.html" %}

{% block css %}
<link rel = "stylesheet" type = "text/css" href = "/css/register.css" />
{% endblock %}

{% block javascript %}
<script type = "text/javascript" src = "/js/fresh_department.js">
</script>
{% endblock %}

{% block title %}
        注册 | researchU
{% endblock %}

{% block navigation %}
{% endblock %}

{% block bodycontent %}
	<div class = "signBarContainer">
		<div class = "signBox clearfix">
			<span class = "signBoxContent">
				注册researchU，你可以通过好友关系、群组讨论、问答等服务，更快更好的学习新知识。
			</span>
		</div>
	</div>
        <div id = "registerFormContainer">
                <div id = "registerFormHeader" class = "clearfix">
                        <h2 class = "headerTitle">researchU 注册</h2>
                </div>
				<form action = "/register/more/" method = "post">
					<div id = "registerForm">
						{% if form.school %}
							<div class = "formRow clearfix">
								<label class = "formRowLabel">{{ form.school.label }}:</label> {{ form.school }}
								{% if form.school.errors %}
									<div class = "error">
										{{ form.school.errors.0 }}
									</div>
								{% endif %}
							</div>
						{% endif %}
						
						{% if form.department %}
							<div class = "formRow clearfix">	
								<label class = "formRowLabel">{{ form.department.label }}:</label> {{ form.department }}
								{% if form.department.errors %}
									<div class = "error">
										{{ form.department.errors.0 }}
									</div>
								{% endif %}
							</div>
						{% endif %}
						
						{% if form.role_type %}
							<div class = "formRow clearfix">
								<label class = "formRowLabel">{{ form.role_type.label }}:</label> {{ form.role_type }}
								{% if form.role_type.errors %}
									<div class = "error">
										{{ form.role_type.errors.0 }}
									</div>
								{% endif %}
							</div>
						{% endif %}
						

						{% if form.admission_year %}
							<div class = "formRow clearfix">
								<label class = "formRowLabel">{{ form.admission_year.label }}:</label> {{ form.admission_year }}
								{% if form.admission_year.errors %}
									<div class = "error">
										{{ form.admission_year.errors.0 }}
									</div>
								{% endif %}
							</div>
						{% endif %}
						
						{% if form.research_domain %}
							<div class = "formRow clearfix">
								<label class = "formRowLabel">{{ form.research_domain.label }}:</label> {{ form.research_domain }}
								{% if form.research_domain.errors %}
									<div class = "error">
										{{ form.research_domain.errors.0 }}
									</div>
								{% endif %}
							</div>
						{% endif %}
						

						<div id = "buttons" class = "formRow clearfix">
							<div id = "registerButton">
								<input value = "完成注册" name = "login" type = "submit" />
							</div>
						</div>
						
					</div>
				</form>
        </div>
{% endblock %}